Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create adoc PR builder [DOC-276] #1397

Closed
wants to merge 3 commits into from

Conversation

JackPGreen
Copy link
Contributor

@JackPGreen JackPGreen commented Nov 22, 2024

We want to catch errors/warnings etc before they are merged.

This PR adds a PR builder action that checks for asciidoc markup issues, failing if any are found.

Action is deliberately modular to be be easily applied to other docs repos.

In isolation this does nothing but alert the GITHUB_ACTOR, but in future could be a mandatory check to block a PR merge.

Note that these checks currently fail on main so merging without addressing those will cause noisier PRs. Another option would be to test only changed files and increment coverage that way - but then intra-document links may not be tested properly.

Example of build output:
image

Fixes: DOC-276, hazelcast/hazelcast-docs#422

@JackPGreen JackPGreen self-assigned this Nov 22, 2024
Copy link

netlify bot commented Nov 22, 2024

Deploy Preview for hardcore-allen-f5257d ready!

Name Link
🔨 Latest commit a0ec81f
🔍 Latest deploy log https://app.netlify.com/sites/hardcore-allen-f5257d/deploys/67448d9cebca6a00093ae5e6
😎 Deploy Preview https://deploy-preview-1397--hardcore-allen-f5257d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@JackPGreen JackPGreen force-pushed the add-asciidoc-pr-builder branch 2 times, most recently from df95792 to 821d4b5 Compare November 23, 2024 00:02
@JackPGreen JackPGreen requested review from nishaatr and fantkolja and removed request for nishaatr November 23, 2024 00:02
@JackPGreen JackPGreen marked this pull request as ready for review November 23, 2024 00:02
@JackPGreen JackPGreen requested a review from a team as a code owner November 23, 2024 00:02
@JackPGreen JackPGreen changed the title Create adoc PR builder [DOC-243] Create adoc PR builder [DOC-276] Nov 23, 2024
@JackPGreen JackPGreen changed the title Create adoc PR builder [DOC-276] Create adoc PR builder [DOC-276] Nov 23, 2024
@JackPGreen JackPGreen force-pushed the add-asciidoc-pr-builder branch from 821d4b5 to d9bccb9 Compare November 23, 2024 00:05
@JackPGreen JackPGreen marked this pull request as draft November 25, 2024 15:08
JackPGreen added a commit to hazelcast/hazelcast-docs that referenced this pull request Dec 5, 2024
We already need to build the documentation using Antora to check for
dead links - currently we log (and fail) if `errors` are introduced, but
we can drop to `warn`ings to further improve quality.

[Note that it's likely that the existing documentation content _already
has these problems_](hazelcast/hz-docs#1397), so
until addressed the exiting warnings are going to get flagged again and
again.

An [example of the
output](https://github.com/hazelcast/hz-docs/pull/1399/checks) can be
found in [this (dummy)
PR](hazelcast/hz-docs#1399).

This is an _alternative implementation_ of
hazelcast/hz-docs#1397

Fixes: [DOC-276](https://hazelcast.atlassian.net/browse/DOC-276),
hazelcast/hz-docs#1397



[DOC-276]:
https://hazelcast.atlassian.net/browse/DOC-276?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
@JackPGreen JackPGreen closed this Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant